//
// Created by lfm on 2025/3/25.
//

#include "Teacher.h"

Teacher::Teacher(string name, int age, string sex, string department):
                Person(name, age, sex), m_Department(department)
{
   cout << "Teacher的构造函数调用" << endl;
}

Teacher::~Teacher()
{

    cout << "Teacher的析构函数调用" << endl;
}

void Teacher::DisplayTeacherInfo()
{
    Person::DisplayInfoPerson();
    cout << "部门->" << m_Department << endl;
}
